package top.rainf.service;

import org.springframework.transaction.annotation.Transactional;
import top.rainf.domain.vo.Post;

import java.util.List;
import java.util.Map;

/**
 * @author 星环
 * @date null
 * @description 自动生成的帖子服务接口
 */
public interface IPostService {

    String postOne(int userId,int blockId,int clazzId,String title,String content);
    List<Post> getPostList();

    Post getOneById(int id);

    boolean deleteOneById(int id);

    boolean deleteAll(List<Integer> idList);

    boolean updateById(Post post);

    List<Post> getHotPost(int num);

    List<Post> getAllPostListPagedByBlockId(int id, int numPerPage, int nowPage);

    int getTotalCount();

    int getTotalCountInBlock(int blockId);


    List<Post> selectByPaged(Map paraMap, Post params);

    int getTotalCountQuery(Map paraMap);

    List<Post> getUserSimplePostListPaged(int userId, int nowPage, int numPerPage);

    int getTotalCountOfUser(int userId);
}
